#!/Python33/python.exe
import serial
import time
import urlparse

def do_GET(self):
    qs = {}
    path = self.path
    if '?' in path:
        path, tmp = path.split('?', 1)
        qs = urlparse.parse_qs(tmp)
    print path, qs
    
do_GET()
#ser = serial.Serial("COM5", 9600, timeout=1)
#ser.write(byte(fromUser))

	#fromDevice = ser.readline().decode("utf-8")
	#if fromDevice:
	#	print ("<< ", fromDevice)
	#	s.send(fromDevice)
#ser.close()
